package com.plant.college.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
public class Consult {
    private Integer id;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long conId;
    private Integer userId;
    private String title;
    private String desc;
    private String contact;
    private String phone;
    private String province;
    private String city;
    private String district;
    private String detail;
    private String img;
    private Double money;
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    private Integer del;
    private String userName;
    private String userPhone;

}
